package com.ocom.ugcapi.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/8/12
 **/
@Data
public class AddPersonVo  implements Serializable {

	@Min(1L)
	@NotNull(message = "单位不能为空")
	private Long comId;
	private Long deptId;


	@NotBlank(message = "手机号不能为空")
	@JsonProperty("phone")
	private String phone;

//	@NotBlank(message = "姓名不能为空")
	@JsonProperty("username")
	private String username;

	@NotBlank(message = "验证码不能为空")
	@JsonProperty("code")
	private String code;

}
